package com.diana.serviceImpl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.diana.common.Utils;
import com.diana.entity.ScheduleJobLog;
import com.diana.mapper.ScheduleJobLogMapper;
import com.diana.service.ScheduleJobLogService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 定时任务日志 服务实现类
 * </p>
 *
 * @author anzhi
 * @since 2019-11-11
 */
@Service
public class ScheduleJobLogServiceImpl extends ServiceImpl<ScheduleJobLogMapper, ScheduleJobLog> implements ScheduleJobLogService {

    @Override
    public String add(ScheduleJobLog scheduleJobLog) {
        boolean insert = this.insert(scheduleJobLog);
        if(insert){
            return Utils.message("0000","操作成功",null);
        }
        return Utils.message("0001","操作失败",null);
    }
}
